<?php
class ActivityFirstPayVo extends SzAbstractMySqlVo
{

    private $userId;
    private $money;
    private $batch;
    private $updateTime;

    /**
     * Initialize ActivityFirstPayVo.
     *
     * @param $userId
     * @param $money
     * @param $batch
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ActivityFirstPayVo
     */
    public function __construct($userId, $money, $batch, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->money = $money;
        $this->batch = $batch;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ActivityFirstPayVo';
        $this->ormName = 'ActivityFirstPay';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'money' => $this->getMoney(),
            'batch' => $this->getBatch(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'money' => $this->getMoney(),
            'batch' => $this->getBatch(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getMoney(),
            $this->getBatch(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getMoney()
    {
        return $this->money;
    }

    public function setMoney($val)
    {
        $this->saveColumnStatus(1, $this->money);
        $this->money = $val;
    }

    public function getBatch()
    {
        return $this->batch;
    }

    public function setBatch($val)
    {
        $this->saveColumnStatus(2, $this->batch);
        $this->batch = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(3, $this->updateTime);
        $this->updateTime = $val;
    }

}